/**
 * 
 */
define([ 'formview', 'methods' ], function(formview) {
	return {
		fnSaveForm : function() {
			var param = {};
			param.code_id = formview.code_id();
			param.code_value = formview.code_value();
			param.code_text = formview.code_text();
			param.p_code_id = formview.p_code_id();
			
			var methods = require('methods');
			methods.save(param);
		},
		fnCloseDlg : function() {
			$('#codeModal').on('hidden.bs.modal', function() {
				$('#saveBtn').show();
			}).modal('hide');
		}
	}
});